﻿using System;
using System.Collections.Generic;
using System.Text;
using YouHP.Model;

namespace YouHP.Model
{
    public interface IPrescriptionComment
    {
        #region 药方评论的查询、添加、更新和删除

        PrescriptionCommentInfo GetPrescriptionCommentInfo(int pid);
        bool AddPrescriptionComment(PrescriptionCommentInfo info);
        bool UpdatePrescriptionComment(PrescriptionCommentInfo info);
        bool DeletePrescriptionComment(int pid);

        #endregion

        #region 药方评论列表及其搜索

        // 按条件检索药方列表
        List<PrescriptionCommentInfo> GetPrescriptionCommentList(int pageSize, int pageIndex, string condStr, out int count);
        List<PrescriptionCommentInfo> GetPrescriptionCommentList(int pageSize, int pageIndex, string condStr, string orderStr, out int count);

        #endregion
    }
}
